<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: main_window.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">main_window.h</div>  </div>
</div>
<div class="contents">
<a href="main__window_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __MAIN_WINDOW__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __MAIN_WINDOW__ 1</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;QMainWindow&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;QLabel&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;QProgressBar&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;QHBoxLayout&gt;</span>
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="main__widget_8h.html">main_widget.h</a>&quot;</span>
<a name="l00010"></a>00010 
<a name="l00011"></a><a class="code" href="classCMainWindow.html">00011</a> <span class="keyword">class </span><a class="code" href="classCMainWindow.html">CMainWindow</a> : <span class="keyword">public</span> QMainWindow
<a name="l00012"></a>00012 {
<a name="l00013"></a>00013         Q_OBJECT
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="keyword">public</span>:
<a name="l00016"></a>00016         <a class="code" href="classCMainWindow.html#af50af798eb9d34b3ce3f8c65d9a602e5">CMainWindow</a>(QWidget* pParent = 0);
<a name="l00017"></a>00017         <span class="keyword">virtual</span> <a class="code" href="classCMainWindow.html#aaf766a8d3f4bc60e3a738d48203377ef">~CMainWindow</a>();
<a name="l00018"></a>00018 
<a name="l00019"></a><a class="code" href="classCMainWindow.html#a58034067d4e9df00ffebeff570d90783">00019</a>         <span class="keyword">static</span> <span class="keyword">const</span> QString <a class="code" href="classCMainWindow.html#a58034067d4e9df00ffebeff570d90783">sGUIName</a>;
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="keyword">private</span> slots:
<a name="l00022"></a>00022         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#afbcd68e4a2d6b70a65c90bc54dc989c9">connectRequested</a>(QString pHost, quint16 pPort);
<a name="l00023"></a>00023         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#afbc60b8ce37bfcb1e164066be748b561">startRequested</a>();
<a name="l00024"></a>00024         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#aa50d965e1e716343d772c97cb72ed6b5">configRequested</a>();
<a name="l00025"></a>00025         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#ad65f2e946289c716e855cffccd70f258">sendConfigRequested</a>();
<a name="l00026"></a>00026         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#a9a32de9e05f81c8068a9e1e4fb1d8be3">disconnectRequested</a>();
<a name="l00027"></a>00027         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#ad749f58dff696f8148f7af125684f0a4">connectionError</a>(QString pErrorMsg);
<a name="l00028"></a>00028         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#a35491f95944ce649b8682219365836cd">clientConnected</a>(QString pHost, quint16 pPort);
<a name="l00029"></a>00029         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#af8c85495b7230d501f34823b0bd394af">clientDisconnected</a>();
<a name="l00030"></a>00030         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#a8f6e16a4b4178a521a8ea2e8c42a98f8">infoReceived</a>(<a class="code" href="ui__constants_8h.html#aa01b2ef0e665c07d46da3a102f120f3c">ELogLevel</a> pLogLevel, QString pLogMessage);
<a name="l00031"></a>00031         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#a65af12e0e8af468423d71ce2c17e049b">closeReceived</a>();
<a name="l00032"></a>00032         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#a5548bfb35b28e4582e9d47fc9ff28f8a">saveToFile</a>();
<a name="l00033"></a>00033         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#a093cb627a85899acadcdd767db834af8">loadFromFile</a>();
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="keyword">private</span>:
<a name="l00036"></a><a class="code" href="classCMainWindow.html#a1cf6016566c804352e5528805f7c4af5">00036</a>         <a class="code" href="classCPropertiesModel.html">CPropertiesModel</a>* <a class="code" href="classCMainWindow.html#a1cf6016566c804352e5528805f7c4af5">mConfModel</a>;
<a name="l00037"></a><a class="code" href="classCMainWindow.html#aa464d22498d47de3b48388218b785d6c">00037</a>         <a class="code" href="classCMainWidget.html" title="this is the actual view for the stegit-2 control">CMainWidget</a> <a class="code" href="classCMainWindow.html#aa464d22498d47de3b48388218b785d6c">mMainWidget</a>;
<a name="l00038"></a><a class="code" href="classCMainWindow.html#aa37ebdee1eff1b62e667a29aabe0f9b9">00038</a>         QMenu* <a class="code" href="classCMainWindow.html#aa37ebdee1eff1b62e667a29aabe0f9b9">mFileMenu</a>;
<a name="l00039"></a><a class="code" href="classCMainWindow.html#a22365b65df3735e6b3b208e4c8ba04d9">00039</a>         QMenu* <a class="code" href="classCMainWindow.html#a22365b65df3735e6b3b208e4c8ba04d9">mCommandsMenu</a>;
<a name="l00040"></a><a class="code" href="classCMainWindow.html#a7ceba2e56055d8ab04f5018741224c0a">00040</a>         QAction* <a class="code" href="classCMainWindow.html#a7ceba2e56055d8ab04f5018741224c0a">mSaveAction</a>;
<a name="l00041"></a><a class="code" href="classCMainWindow.html#a35591dc7789ebf0e95c463eaf5636d33">00041</a>         QAction* <a class="code" href="classCMainWindow.html#a35591dc7789ebf0e95c463eaf5636d33">mLoadAction</a>;
<a name="l00042"></a><a class="code" href="classCMainWindow.html#ae735ac38d6c955aac4614724c3c0aeb5">00042</a>         QAction* <a class="code" href="classCMainWindow.html#ae735ac38d6c955aac4614724c3c0aeb5">mExitAction</a>;
<a name="l00043"></a><a class="code" href="classCMainWindow.html#a6f1a419533f73705db74aace469966d3">00043</a>         QAction* <a class="code" href="classCMainWindow.html#a6f1a419533f73705db74aace469966d3">mStartAction</a>;
<a name="l00044"></a><a class="code" href="classCMainWindow.html#a8089c70175d69dd56e4497a8a2af4a41">00044</a>         QAction* <a class="code" href="classCMainWindow.html#a8089c70175d69dd56e4497a8a2af4a41">mRequestConfigAction</a>;
<a name="l00045"></a><a class="code" href="classCMainWindow.html#a55f534c27e4d9af43a9a98f2b1496280">00045</a>         QAction* <a class="code" href="classCMainWindow.html#a55f534c27e4d9af43a9a98f2b1496280">mSendConfigAction</a>;
<a name="l00046"></a><a class="code" href="classCMainWindow.html#ac0c7a3e8e6c204bd2cb0b1da78823b6c">00046</a>         QLabel <a class="code" href="classCMainWindow.html#ac0c7a3e8e6c204bd2cb0b1da78823b6c">mStatusBarLabel</a>;
<a name="l00047"></a>00047 
<a name="l00048"></a><a class="code" href="classCMainWindow.html#a3db33d36b292d0bd13388e8b2724af4d">00048</a>         <a class="code" href="classCClientConnection.html" title="this is the actual model for the stegit-2 control">CClientConnection</a>* <a class="code" href="classCMainWindow.html#a3db33d36b292d0bd13388e8b2724af4d">mConnection</a>;
<a name="l00049"></a>00049 
<a name="l00050"></a>00050         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#a915318efa30be88615d56e9860bb907e">createMenu</a>();
<a name="l00051"></a>00051         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#a4e636ae2d46fd9240edff6ee5056dd4b">createStatusBar</a>();
<a name="l00052"></a>00052         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#a8908f5acf38e655d8927101a35495b4c">setupActions</a>();
<a name="l00053"></a>00053         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#ae22ca02599254549683871cbef5f6f54">connectConnectionBindings</a>();
<a name="l00054"></a>00054         <span class="keywordtype">void</span> <a class="code" href="classCMainWindow.html#a3fbc2f5be7c91d05cfa32b5f9dafc080">disconnectConnectionBindings</a>();
<a name="l00055"></a>00055 };
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 <span class="preprocessor">#endif </span><span class="comment">/* __MAIN_WINDOW__ */</span>
<a name="l00058"></a>00058 
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:39 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
